<th:block th:fragment="frag(app)">
	<th:block th:with="meta=${app.object.data.get('meta')}">
		<!-- 加载头部导航，例如：系统管理 / 用户
		<th:block th:include="topNav :: frag(${bigUser.currentMenu})">
		</th:block>
		-->
		<!-- Main content -->
		<section class="content">
			<div class="row">
				<div class="col-md-2">
					<div class="box box-solid">
						<div class="box-header with-border">
							<h5 class="box-title">请选择需要在日历中管理的对象：</h5>
						</div>
						<div class="box-body">
							<div class="row"  th:with="appColors=${T(java.util.Arrays).asList('text-aqua', 'text-blue', 'text-light-blue', 'text-teal', 'text-yellow', 'text-orange', 'text-green', 'text-lime', 'text-red', 'text-fuchsia', 'text-muted', 'text-navy')}">
								<!--<button type="button" id="color-chooser-btn" class="btn btn-info btn-block dropdown-toggle" data-toggle="dropdown">Color <span class="caret"></span></button>-->
								<h4 class="col-md-12" th:each="a : ${app.apps}">
									<span class="fa fa-square" th:attrappend="class=${' ' + appColors.get(aStat.index)}"  th:text="${' ' + a.name}"></span>
									<input type="checkbox" class="pull-right" name="legend" th:data-app-type="${a.type}" th:data-app-url="${a.template}" th:data-app-id="${a.id}" th:data-app-name="${a.name}">
								</h4>
							</div>
						</div>
					</div>
				</div>
				<!-- /.col -->
				<div class="col-md-10">
					<div class="box box-primary">
						<div class="box-body no-padding">
							<!-- THE CALENDAR -->
							<div th:id="|${app.domprefix}-${app.id}-calendar|"></div>
						</div>
						<!-- /.box-body -->
					</div>
					<!-- /. box -->
				</div>
				<!-- /.col -->
			</div>
		</section>
	</th:block>
	<!-- /.content -->
</th:block>